layui.use(['upload','layer','commons','form'],function() {
    var $ = layui.jquery,
        layer = layui.layer,
        common = layui.commons,
        form = layui.form;

    //获取登录信息
    var user = getUser();
    try{
        var userName = user.name;
        $("#user-name").text(userName);
        $("#current-time").text(' ！当前时间： '+ (new Date().format("yyyy-MM-dd hh:mm:ss")));
    }catch(error){
        console.log(error);
    }

})
